from rest_framework import serializers
from goods.models import GoodCategoryVisit


# 定义商品分类模型序列化器
class CateGoryModelSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)

    class Meta:
        model = GoodCategoryVisit
        fields = "__all__"
